package com.ztgf.order.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-06-28 16:58
 * Description: 订单列表VO
 */
@Data
public class OrderPageListVO implements Serializable {

    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "买家店铺名称/卖家公司名称")
    private String userName;

    @ApiModelProperty(value = "订单状态 0待确定、1待签合同、2待付款、3待发货、4待签收、5已签收、6已取消")
    private Integer orderState;

    @ApiModelProperty(value = "合同状态 0未签订、1买家签订、2卖家签订、3已签订")
    private Integer contactState;

    @ApiModelProperty(value = "发票状态 0未开票、1申请中、2已开票")
    private Integer invoiceState;

    @ApiModelProperty(value = "评价状态 0未评价、1已评价")
    private Integer evaluationState;

    @ApiModelProperty(value = "卖家删除状态 0未删除、1已删除")
    private Integer sellerDeleteState;

    @ApiModelProperty(value = "买家删除状态 0未删除、1已删除")
    private Integer buyersDeleteState;

    @ApiModelProperty(value = "货物生产状态 0未生成、1生产中、2生产完成")
    private Integer goodsProductionState;

    @ApiModelProperty(value = "卖家维权状态 0未维权、1申请中、2同意、3不同意")
    private Integer sellerActivistState;

    @ApiModelProperty(value = "买家维权状态 0未维权、1申请中、2同意、3不同意")
    private Integer buyersActivistState;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "订单创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "订单倒计时")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date countDownTime;

    @ApiModelProperty(value = "支付方式")
    private Integer payType;

    @ApiModelProperty(value = "类型 0普通、1询价")
    private Integer type;

    @ApiModelProperty(value = "发货方式 0全部发货，1部分发货")
    private Integer shipType;

    @ApiModelProperty(value = "订单商品列表")
    private List<OrderCommodityItemVO> orderItem;




}
